package com.dean.service;

import com.dean.dao.DeanToolDao;
import com.dean.entity.DataFileImpExpEntity;

/**
 * @ClassName EntityGenerateService
 * @Description 实体类生成工具类
 * @Author Administrator
 * @Date 2021/10/2313:36
 */
public class DataFileImpExpCfgService {
    private DataFileImpExpCfgService(){
    }
    private static volatile DataFileImpExpCfgService INSTANCE;
    public static DataFileImpExpCfgService getInstance(){
        if(INSTANCE == null){
            synchronized (DataFileImpExpCfgService.class){
                if(INSTANCE == null){
                    INSTANCE = new DataFileImpExpCfgService();
                }
            }
        }
        return INSTANCE;
    }

    /**
     *
     * @param entity
     */
    public void saveCfg(DataFileImpExpEntity entity){
        DeanToolDao.getInstance().saveDataFileImpExpCfg(entity);
    }

    public void delCfg(DataFileImpExpEntity entity){
        DeanToolDao.getInstance().delDataFileImpExpCfg(entity);
    }

    public void updateCfg(DataFileImpExpEntity entity){
        DeanToolDao.getInstance().updateDataFileImpExpCfg(entity);
    }
}
